<template>
  <div class="card p-10">
    <div class="title">
      <van-tag plain type="danger">{{info.type}}</van-tag>
      <span class="ml-10">{{info.time}}</span>
      <span class="float_r x_y_center c999"
        >{{info.status}}<van-icon name="arrow"
      /></span>
    </div>
    <div>
      <van-cell
        v-for="(item, index) in info.children"
        :key="index"
        icon="hot-o"
        :title="item.title"
        :value="item.num + '份'"
      >
        <template #right-icon>
          <span class="ml-20">{{ item.money }}元</span>
        </template>
      </van-cell>
    </div>
    <div class="txt_right mr-15">
      <span class="mr-20 c999">共 {{info.totalNum}} 份</span>
      <span>合计：<span class="money">￥ {{info.totalMoney}}</span> </span>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    info: { type: Object, require: true },
    isGoTo: { type: Boolean, default: false },
  },
  setup(props) {
    console.log(props);
    const goTo = (url) => {
      console.log(url);
      return;
      // window.open(url)
    };
    return {
      goTo,
    };
  },
};
</script>

<style lang="less" scoped>
.top {
  /deep/.van-tabs__content {
    height: calc(100vh - 1.3333rem - 45px);
    overflow-y: auto;
    padding: 0 0.42667rem;
    box-sizing: border-box;
    .right {
      /deep/.van-tabs__content {
        height: calc(100vh - 1.3333rem - 90px);
        overflow-y: auto;
        padding: 0;
      }
    }
    .card {
      margin-top: 10px;
      .money {
        font-size: 14px;
        font-weight: bold;
      }
    }
  }
}
</style>
